<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/5
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common/web_top.jsp" %>
<title>客服催收</title>
<div ng-include="loanLater" class="includeStyle "><!--定位div容器-->
    <!--滚动div-->
    <div class="bgSortScroll">
        <!-- ngIf: HbHr.hr130 -->
        <div class="public-bgContent">
            <!--表单搜索-->
            <div class="public-bgDate">
                <div class="se-re">
                    <select id="time_type"
                            class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="" selected="selected">时间类型</option>
                        <option value="1">还款日期</option>
                        <option value="2">转入时间</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <span>
			<input type="text" autocomplete="off" id="start_time" placeholder="开始时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker" />
			<i class="iconfont icon-riqi"></i>
		</span>
                <em>
                    ~
                </em>
                <span>
			<input type="text" autocomplete="off" id="end_time" placeholder="结束时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker">
			<i class="iconfont icon-riqi"></i>
		         </span>
                <div class="se-re">
                    <select id="seleNames" ng-model="param.type" ng-class="{'error':redErr.seleName}"
                            ng-focus="remHight()" ng-change="changeName()"
                            class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="" selected="selected">选择字段</option>
                        <option value="1">借款编号</option>
                        <option value="2">客户姓名</option>
                        <option value="3">手机号码</option>
                        <option value="4">身份证号码</option>
                        <option value="5">业务员姓名</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <span>
			<input type="text" autocomplete="off" id="inputNames" placeholder="请输入关键字" ng-focus="remHight()"
                   ng-model="param.name"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
		</span>
                <div class="se-re">
                    <select id="at_id">
                    </select>
                    <span class="se-po"></span>
                </div>
                <div class="se-re">
                    <select id="loan_way" class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="" selected="selected">贷款方式</option>
                    </select>
                    <script type="text/x-handlebars-template" id="loanMethod_list_tpl">
                        {{#each content}}
                        <option value="{{id}}">{{name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po"></span>
                </div>
                <div class="se-re">
                    <select id="product_choose_list" class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="">选择产品</option>
                        <%--<option value="1">按揭短拆</option>
                        <option value="2">红本抵押</option>
                        <option value="3">红本质押</option>--%>
                    </select>
                    <span class="se-po"></span>
                </div>
                <div class="se-re">
                    <select id="d2Id"
                            class="ng-pristine ng-untouched ng-valid ng-empty">
                    </select>
                    <script type="x-handlebars-template" id="department_content_tpl">

                        <option value="" class="" selected="selected">全部分公司</option>
                        {{#each .}}
                        <option label="{{d_name}}" value="{{id}}">{{d_name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po"></span>
                </div>
                <button id="sousuo">
                    <i class="iconfont icon-sousuo"></i>
                </button>
            </div>
            <div class="public-bghint">
                <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                <i class="iconfont icon-icon-copy-copy"></i>
                <span class="calNum">筛选<span class="result ">0</span>条结果</span>
            </div>
            <ul class="public-ulList" ng-show="loanLaterShow.caozuo">
                <li>显示拥有该栏目管理权限的数据;</li>
                <li>拥有权限的管理员会显示对应的操作按钮；</li>
                <li>逾期管理是收款环节，财务人员把订单列为逾期订单而显示到此处，逾期包含提前还部分逾期款；</li>
                <li>逾期的订单由分公司下客服人员进行第1次催收。</li>
            </ul>
            <div style="height: 20px;"></div>
            <!--tabel 列表-->
            <table class="table public-table PoInput">
                <thead>
                <tr>
                    <td>选择</td>
                    <td>转入时间</td>
                    <td>借款编号</td>
                    <td>所属产品</td>
                    <td>客户姓名</td>
                    <td>已还/总期</td>
                    <td>借款金额</td>
                    <td>未还总额</td>
                    <td>业务员</td>
                    <td>部门</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody id="orderCollection_content">

                </tbody>
                <tfoot class="public-botPage">
                <tr>
                    <td>
                        <!-- 全选反选  -->
                        <input type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                    </td>
                    <td colspan="12">
                        <div class="public-botPage-left">
						<span>
							<span>全选</span>
						</span>
                            <div class="se-re">
                                <select class="tabHint revisitm ng-pristine ng-untouched ng-valid ng-not-empty"
                                        ng-model="selectType.default" ng-change="F.selectQuery('revisitm','ch_id')">
                                    <option value="-1" selected="selected">批量操作</option>
                                    <option value="1" path="loanLater" param="nowPage:serviceCollect"
                                            params="attachment">转入查封
                                    </option>
                                </select>
                                <span class="se-po"></span>
                            </div>
                        </div>
                        <div class="collection-page-container page-container"
                             style="float: right; padding: 15px 0;"></div>
                    </td>
                </tr>
                </tfoot>
            </table>
            <!--提示操作-->
            <script id="orderCollection_content_tpl" type="x-handlebars-template">


                {{#if content.content.list.[0]}}
                {{#each content.content.list}}
                <tr ng-repeat="i in data.content.list" ng-click="F.tabClick($event)"
                    class="table-tr-hover ">
                    <td><input type="checkbox" name="ch_id" value="379"></td>
                    <%--d2_name
                    true string
                    部门2
                    sumComprehensive
                    true number
                    综合费总和
                    repayment_way
                    true number
                    还款方式 1先息后本 2等 额等息 3 等额等息
                    sumPenalty
                    true number
                    实际还款总和
                    lt_id
                    true number
                    贷款类型
                    pid
                    true number
                    客户ID
                    admin_name
                    true string
                    业务员姓名
                    iDate
                    true number
                    逾期天数
                    loan_number
                    true string
                    订单编号
                    id
                    true number
                    订单id
                    apply_money
                    true number
                    借款金额
                    sumMoeny
                    true number
                    实际还款总和
                    s_name
                    true string
                    订单状态名称
                    personal_name
                    true string
                    客户姓名
                    d1_name
                    true string
                    部门1
                    sumP
                    true number
                    已还期数（实际计算要- 1）
                    sumLate_fee
                    true number
                    滞纳金总和
                    admin_id
                    true number
                    业务员id
                    service_collection_time
                    true string
                    客服催收转入时间
                    s_id
                    true number
                    状态ID
                    repayment_time_stmp
                    true number
                    还款时间戳
                    d3_name
                    true string
                    部门3
                    at_name
                    true string
                    总期数
                    sumRate
                    true number利息总和--%>

                    <%--<td>选择</td>
                    <td>转入时间</td>
                    <td>借款编号</td>
                    <td>客户姓名</td>
                    <td>已还/总期</td>
                    <td>借款金额</td>
                    <td>未还总额</td>
                    <td>业务员</td>
                    <td>部门</td>
                    <td>状态</td>
                    <td>操作</td>--%>

                    <td class="">{{service_collection_time}}</td>
                    <td class="">{{loan_number}}</td>
                    <td>{{product_name}}</td>
                    <td class="">{{personal_name}}</td>
                    <td class="">
                        {{#IF_EQ repayment_way '4'}}
                            {{at_id}}天/{{at_id}}天
                        {{else}}
                            {{#IF_GT sumP 1}}
                                {{#substraction sumP 1}}
                                {{/substraction}}期
                            {{else}}
                                {{#IF_EQ sumP 1}}
                                    首月扣款
                                {{else}}
                                    {{sumP}}
                                {{/IF_EQ}}
                            {{/IF_GT}}/{{at_name}}
                        {{/IF_EQ}}
                    </td>
                    <td class="">￥{{#thounsandBit apply_money}}{{/thounsandBit}}</td>
                    <td class="">{{#IF_EQ s_id 17}}
                        ￥ 0
                        {{else}}
                        ￥{{#unpaid apply_money sumLate_fee sumPenalty sumComprehensive sumRate sumMoeny}}{{/unpaid}}
                        {{/IF_EQ}}
                    </td>
                    <td class="">{{admin_name}}</td>
                    <td class="">{{#if d1_name}}
                        {{#if d3_name}}{{d3_name}}&gt;&nbsp;{{/if}}{{#if d2_name}}{{d2_name}}&gt;&nbsp;{{/if}}{{#if
                        d1_name}}{{d1_name}}{{/if}}
                        {{/if}}
                    </td>
                    <td class="">{{s_name}}</td>
                    <td>
                        <div class="se-re sel-blue">
                            <select class="operations tabHint ser379" data-at_name="{{at_name}}"
                                    data-numed="{{sumP}}" data-id="{{id}}" data-loan_type="{{loan_type}}"
                                    data-repayment_way="{{repayment_way}}"
                                    data-apply_money="{{apply_money}}"
                                    data-productid="{{product_id}}" data-adminid={{admin_id}}
                                    data-fluntype="{{flun_type}}" data-at_id="{{at_id}}">
                                <option value="-1" selected="selected">选择操作</option>
                                {{#each ../fourthMenus}}
                                <option value="{{key}}">{{name}}</option>
                                {{/each}}
                            </select>
                            <span class="se-po-blue"></span>
                        </div>
                        <!-- ngIf: HbHr.hr255 -->
                        <button class="operations_record tabHint btnQuery379" id="{{id}}">操作记录

                        </button><!-- end ngIf: HbHr.hr255 -->
                    </td>
                </tr> <!-- end ngRepeat: i in data.content.list -->
                {{/each}}
                {{else}}
                <tr ng-if="data.content.list.length ==0" class="">
                    <td colspan="16">暂时找不到数据</td>
                </tr>
                {{/if}}


            </script>
            <!--底部操作-->
        </div><!-- end ngIf: HbHr.hr130 -->
    </div>
</div>


<%--提交回访--%>
<div class="winBox visitWinbox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box" style=""><!-- 说明 -->

        <div class="winBox2 " style="">
            <div class="_box_" style="">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">提交回访</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox topbox" style="">
                    <!-- 中间列表 -->
                    <table class="resultTab" style="">
                        <tbody style="">
                        <tr>
                            <td><span style="color: #ec0a0b;">*</span>拜访类型</td>
                            <td class="tdSelect">
                                <div class="se-re">
                                    <select id="visit_list">

                                    </select>

                                    <script id="visit_list_tpl" type="x-handlebars-template">
                                        {{#each .}}
                                        <option value="{{id}}">{{type_name}}</option>
                                        {{/each}}
                                    </script>

                                    <span class="se-po se-box"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td><span style="color: #ec0a0b;">*</span>拜访时间</td>
                            <td class="tdWei">
								<span class="put-l-input">
								<input type="text" id="visit_time" class="datepicker"/>
								<i class="iconfont icon-riqi"></i>
								</span>
                            </td>
                        </tr>
                        <tr style="">
                            <td><span></span>图片上传</td>
                            <td class="unload">
                                <em id="_imgTerm1" class="viewPic" data-id="提交回访" style="margin-top: 14px;"
                                    data-tag="ueloadImg" name="imgInput">上传图片 </em>
                                <div class="imgArr minImg" style="margin-top:10px; width: 308px">
                                            <span style="display: none" class="_pre " ng-if="item.isImg"
                                                  ng-click="_pre(key)"></span>
                                    <div class="cover" style="overflow-y: hidden;
    height: 70px;
    margin: 0 24px;">
                                        <div id="gallery7" attachid="提交回访" style="position: relative; left: 0;">
                                        </div>
                                    </div>
                                    <span style="display: none" class="_next "></span>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="beizhu"><span>*</span>输入回访记录：</div>
                    <textarea id="visitWinboxtexTarea" ng-focus="remHight()" ng-class="{'error':redErr.remarks}"
                              ng-model="param.remarks"
                              data-tag="textLength" showtag="zishuxians"
                              class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                    <input type="text" ng-model="param.order_id" style="display: none;"
                           class="ng-pristine ng-untouched ng-valid ng-not-empty">
                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">

                            <button id="commitVisit" ng-click="btn()">确定提交</button>
                            <%--<button ng-click="F.showWin('hide')">取消</button>--%>
                        </div>

                    </div>
                </div>


            </div>
        </div>
    </div>
</div>

<%--回访记录弹窗--%>
<div class="winBox" id="revisit_pop">
    <div class="winBox1 " ng-include="box"><!-- 说明： 操作记录模板 -->
        <div class="winBox3 ">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">回访记录</span>
                    <i id="" record_show class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="contentBox" style="max-height: 787px; overflow-y: auto">
                    <div class="centerBox">
                        <div class="ccc" id="revisit_list" style="padding-bottom: 37px;">
                        </div>
                        <script type="text/x-handlebars-template" id="revisit_list_tpl">
                            {{#if list.[0]}}
                            {{#each list}}
                            <div class="centerList D-takeList" style="height: auto; padding: 30px 20px; border: 1px dash #ddd">
                                <div class="centerImg" style="float: initial; margin-bottom: 0px; overflow: hidden; padding-bottom: 10px;">
                                    <div class="two-img" style="margin-top: 0">
                                        {{#if photo_url}}
                                        <img src="{{photo_url}}"/>
                                        {{else}}
                                        <img src="static/images/tou.png"/>
                                        {{/if}}
                                    </div>
                                    <span style="margin: 20px 0 0 10px; float: left;">回访人员：{{real_name}}</span>
                                    <span style="float: right">
                                            <div style="text-align: right; margin-bottom: 10px">拜访类别：{{type_name}}</div>
                                            <div>拜访时间：{{visit_time}}</div>
                                        </span>
                                </div>
                                <div class="visitContent" style="padding: 20px 26px 0; width: 460px; height: 93px; background-color: #f5f5f5; border-radius: 10px;">
                                    {{visit_remark}}
                                </div>
                                <div style="margin: 10px 0 0 7px">{{add_time}}</div>
                            </div>
                            {{/each}}
                            <div style="text-align: center; margin-top: 20px;" class="showMore" data-pagenum="{{pageNum}}">查看更多记录</div>
                            {{else}}
                            <ul class="centerUl">
                                <li class="centerLi1">暂无回访纪录</li>
                            </ul>
                            {{/if}}
                            <%--<div class="public-botPage-right"
                                 style="height: 50px;padding-top: 10px;padding-left: 100px;float: right;">
                                <div ng-include="pageUrl" onload="pageOnload()"></div>
                            </div>
                            <div class="page-container record-page-container" style="float: right; padding: 15px 0;"></div>--%>
                        </script>
                    </div>
                </div>
                <!-- 中间列表 -->

                <!-- 底部分页 -->
            </div>
        </div>
    </div>
</div>

<%--添加续期弹窗--%>
<div class="winBox addTerm_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明 -->

        <div class="winBox2 ">
            <div class="putloan">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">添加续期</span>
                    <i class="iconfont icon-wrong headerIcon"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox" style="max-height: 696px;">
                        <div class="resultPadd">
                            <table class="resultTab">
                                <tbody id="add_putLoan_list">


                                <%--<tr>
                                    <td><span style="color: #ec0a0b;">*</span>收款归类</td>
                                    <td class="tdSelect">
                                        <div class="se-re">
                                            <select id="add_paymentSort_list">

                                            </select>
                                            <span class="se-po se-box"></span>
                                        </div>
                                        <span class="D-right-al">
                                            <i class="small-i" style="display:none">存在违约金</i>
                                        </span>
                                    </td>
                                </tr>--%>

                                <%--<tr id="thisTerm">
                                    <td><span style="color: #ec0a0b;">*</span>本期期数</td>
                                    <td class="tdWei">
                                        <span class="loan-yellow periods">{{#IF_EQ ps_id 7}}{{funMapLoan.periods}}{{else}}{{funPlan.periods}}{{/IF_EQ}}</span>
                                        <span class="loan-remind">
                                <div class="small-i plan_time">当前笔款计划日期：{{funPlan.repayment_time}}</div>
                                <div class="small-i  {{#IF_NEQ funMap.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                     id="small_333">本地日期：{{newData}}</div>
                            </span>
                                    </td>
                                </tr>--%>
                                <!-- 收款归类 -->
                                <%--<tr id="collectByDays" style="display: none;">
                                    <td><span style="color: #ec0a0b;">*</span>借款期限</td>
                                    <td class="tdWei">
                                        <label>
                                            <input type="text" id="add_days"/>
                                            <span>天</span>
                                        </label>
                                        <span class="loan-remind">
                                            <div class="small-i" id="add_payed" style="display: none;">已还时间：<span id="add_payedDays"></span>天</div>
                                            <div class="small-i small-i-red" id="add_paying" style="display: none;">未还时间：<span id="add_payingDays"></span>天</div>
                                        </span>
                                    </td>
                                </tr>--%>

                                <!-- 本期收款 -->
                                <%--<tr id="thisCollect">
                                    <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                    <td class="tdWei">
                            <span id="plan_payment_money" class="loan-yellow ">
                                {{#IF_EQ ps_id 5}}
                                    ￥{{#thounsandBit maps.sumMoney}}{{/thounsandBit}}
                                {{else}}
                                    {{#expression ps_id '==' 7 '&&' loan_type '=='1}}
                                        ￥{{#add funMapLoan.is_moth_repayment_rate funMapLoan.is_month_repayment_money funMapLoan.is_comprehensive}}{{/add}}
                                    {{else}}
                                        ￥{{#thounsandBit plan_payment_money}}{{/thounsandBit}}
                                    {{/expression}}
                                {{/IF_EQ}}
                            </span>
                                    </td>
                                </tr>--%>


                                <tr>
                                    <td><span style="color: #ec0a0b;">*</span>续期天数</td>
                                    <td class="tdWei">
                                        <label class="slabel">
                                            <input
                                                    type="text"
                                                    id="addTerm_days"
                                            /> 天
                                        </label>
                                    </td>
                                </tr>

                                <!-- 收款明细 -->
                                <%--<tr class="collectDetail">
                                    <td rowspan="2"><span style="color: #ec0a0b;">*</span>收款明细</td>
                                    <!-- ngIf: changeEle.qishu -->
                                    <td id="qishu" class="tdSelect " {{#IF_NEQ ps_id 5}}{{else}}style="display: none" {{/IF_NEQ}}>
                                    <div class="se-re">
                                        <select id="fund_plan_id">
                                            {{#each funPlanlList}}
                                            <option value="{{id}}">{{periods}}</option>
                                            {{/each}}
                                        </select>
                                        <span class="se-po se-box"></span>
                                    </div>
                                    </td>
                                    <!-- end ngIf: changeEle.qishu -->
                                </tr>--%>
                                <%--<tr class="collectDetail">
                                    <td class="tdWei tdRadio" style="background: #ffffff;">
                            <span class="loan-Ii">
                                <i id="notbeijin" class="small-i" ng-if="!changeEle.benjin" {{#IF_NEQ ps_id
                                   5}}{{else}}style="display: none" {{/IF_NEQ}}>
                                    {{#IF_GT funPlan.is_month_repayment_money 0}}<span class="small-i"
                                                                                       ng-if="funMap.is_month_repayment_money>0">
                                        本金（￥{{#thounsandBit funPlan.is_month_repayment_money}}{{/thounsandBit}}元）
                                    </span>
                                    {{/IF_GT}}
                                    {{#IF_GT funPlan.is_moth_repayment_rate 0}}
                                    <span class="small-i" ng-if="funMap.is_moth_repayment_rate>0">
                                        月息（￥{{#thounsandBit funPlan.is_moth_repayment_rate}}{{/thounsandBit}}元）
                                    </span>
                                    {{/IF_GT}}
                                    {{#IF_GT funPlan.is_comprehensive 0}}
                                    <span class="small-i" ng-if="funMap.is_comprehensive>0">
                                        综合费用（￥{{#thounsandBit funPlan.is_comprehensive}}{{/thounsandBit}}元）
                                    </span>
                                    {{/IF_GT}}
                                </i>
                                <i id="beijin" class="small-i" {{#IF_EQ ps_id 5}}{{else}}style="display: none" {{/IF_EQ}}>
                                    <span class="small-i" ng-if="data.content.maps.sumMoney>=0">
                                        本金（￥{{#thounsandBit maps.sumMoney}}{{/thounsandBit}}元）
                                    </span>
                                </i>
                                <i id="zonghe" class="small-i" {{#IF_EQ ps_id 7}}{{else}}style="display: none" {{/IF_EQ}}>
                                    <span class="small-i" ng-if="data.content.maps.sumMoney>=0">
                                        综合费用（{{#IF_EQ loan_type 1}}
                                        ￥{{#add funMapLoan.is_moth_repayment_rate funMapLoan.is_month_repayment_money funMapLoan.is_comprehensive}}{{/add}}
                                        {{else}}
                                        ￥{{#add funMap.is_moth_repayment_rate funMap.is_month_repayment_money funMap.is_comprehensive}}{{/add}}
                                        {{/IF_EQ}}元）
                                    </span>
                                </i>
                                <i id="collectByDaysDetail" class="small-i" {{#IF_EQ ps_id 9}}{{else}}style="display: none" {{/IF_EQ}}>
                                    <span class="small-i" id="benjin">
                                        本金（￥<span style="margin-right: 0" id="daysApplyMoney"></span>元）
                                    </span>
                                    <span class="small-i">
                                        利息（￥<span style="margin-right: 0" id="daysApplyInterest"></span>元）
                                    </span>
                                </i>
                            </span>
                                    </td>
                                </tr>--%>
                                <!--押金-->
                                <%--<tr class="more-opera" id="deposit" {{#IF_EQ period_num
                                    sum_name}}{{else}}style="display:none"
                                    {{/IF_EQ}}{{#IF_EQ ps_id 5}}{{#IF_GT sum 0}}{{else}}style="display:none"{{/IF_GT}}{{/IF_EQ}}>
                                <td rowspan="2">押金</td>
                                <td class="tdSelect">
                                    <i>
                                        <input type="checkbox" id="depositReturn"/>
                                        <em>押金转本金</em><span>{{#if sum}}（￥{{#thounsandBit sum}}{{/thounsandBit}}元）{{else}}（￥0元）{{/if}}</span>
                                    </i>
                                </td>
                                </tr>--%>
                                <%--<tr class="more-opera" id="guarantee" {{#IF_EQ period_num
                                    sum_name}}{{else}}style="display: none;"
                                    {{/IF_EQ}}{{#IF_EQ ps_id 5}}{{#IF_GT sum 0}}{{else}}style="display: none"{{/IF_GT}}{{/IF_EQ}}>
                                <td class="tdWei tdRadio" style="background: #ffffff;">
                            <span class="loan-Ii">
                                <i class="small-i">
                                    <span class="small-i">
                                        保证金（￥{{#thounsandBit depositOne}}{{/thounsandBit}}元）
                                    </span>
                                </i>
                            </span>
                                </td>
                                </tr>--%>
                                <!-- 违约金 -->
                                <%--{{#if funMap.penalty}}--%>
                                <%--<tr id="penalty" {{#IF_EQ ps_id
                                    5}}{{else}}style="display: none;" {{/IF_EQ}}>
                                <td>违约金</td>
                                <td class="tdWei">
                                    <label>
                                        <input id="penalty_val" style="width: 148px" type="text"
                                               value="{{funPlan.is_penalty}}" onlyInputNum="1">
                                    </label>
                                    <span ng-if="sum > 0">
                            <input type="checkbox" id="Depositforbreach">
                            <em>押金转违约金</em><span>{{#if sum}}（￥{{#thounsandBit sum}}{{/thounsandBit}}元）{{else}}（￥0元）{{/if}}</span>
                        </span>
                                </td>
                                </tr>--%>
                                <%--{{/if}}--%>
                                <!-- 滞纳金 -->
                                <%--{{#if funMap.late_fee}}--%>
                                <%--<tr id="late_fee_need" class="esa" {{#IF_EQ ps_id 1}}
                                    {{#IF_EQ maps.s_id 18}}{{else}}style="display: none" {{/IF_EQ}}
                                {{/IF_EQ}}
                                {{#IF_EQ ps_id 4}}{{else}}style="display: none"{{/IF_EQ}}
                                {{#IF_EQ ps_id 5}}{{else}}style="display: none"{{/IF_EQ}}>>
                                <td>是否缴纳滞纳金</td>
                                <td>
                                    <label>
                                        <input type="radio" name="isLate" value="1"/>需要
                                    </label>
                                    <label>
                                        <input type="radio" name="isLate" value="2"/>不需要
                                    </label>
                                </td>
                                </tr>
                                <tr id="late_fee" style="display: none">
                                    <td>滞纳金</td>
                                    <td class="tdWei">
                                        <label>
                                            <input type="text" style="width: 148px" value="{{funPlan.is_late_fee}}"
                                                   id="late_fee_val" onlyInputNum="1">
                                        </label>
                                    </td>
                                </tr>--%>
                                <%--{{/if}}--%>
                                <%--<tr class="esa isBenJin" style="display: none">
                                    <td><span style="color: #ec0a0b;">*</span>是否收取本金</td>
                                    <td>
                                        <label>
                                            <input type="radio" name="isBenJin" value="2"/>是
                                        </label>
                                        <label>
                                            <input type="radio" name="isBenJin" value="1"/>否
                                        </label>
                                    </td>
                                </tr>--%>

                                <tr>
                                    <td><span style="color: #ec0a0b;">*</span>利率</td>
                                    <td class="tdWei">
                                        <label class="slabel">
                                            <input
                                                    type="text"
                                                    id="add_interest"
                                            /> 分
                                        </label>
                                        <span class="loan-remind">
									        <div id="interest_rate">利息：￥0</div>
								        </span>
                                    </td>
                                </tr>

                                <!--还款日期 -->
                                <tr ng-show="changeEle.huaizhang">
                                    <td><span style="color: #ec0a0b;">*</span>还款日期</td>
                                    <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                    </td>
                                </tr>
                                </tbody>
                                <!-- 本期期数-->


                                <script id="special_putLoan_list_tpl" type="x-handlebars-template">
                                    <tr>
                                        <td><span style="color: #ec0a0b;">*</span>收款归类</td>
                                        <td class="tdSelect">
                                            <div class="se-re">
                                                <select id="special_paymentSort_list">
                                                    <option value="1">综合费回款</option>
                                                    <option value="2">按天计息</option>
                                                </select>
                                            </div>
                                            <span class="loan-remind">
									<div class="small-i  {{#IF_NEQ map.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                         id="small_333">本地日期：{{newData}}</div></span>
                                            <span class="D-right-al">
									<i class="small-i" style="display:none">存在违约金</i>
								</span>
                                        </td>
                                    </tr>

                                    <tr class="special_term">
                                        <td><span style="color: #ec0a0b;">*</span>本期期数</td>
                                        <td class="tdWei">
                                            <span class="loan-yellow periods">{{map.periods}}</span>
                                            <span class="loan-remind">
									<div class="small-i plan_time">当前笔款计划日期：{{map.repayment_time}}</div>
									<div class="small-i  {{#IF_NEQ funMap.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                         id="small_333">本地日期：{{newData}}</div>
								</span>
                                        </td>
                                    </tr>

                                    <%--<tr class="composive_gathering">
                                        <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                        <td class="tdWei">
                                            <span id="plan_payment_money" class="loan-yellow ">
                                                        ￥{{#add map.is_moth_repayment_rate map.is_month_repayment_money map.is_comprehensive}}{{/add}}
                                            </span>
                                        </td>
                                    </tr>--%>



                                    <!--到账日期 -->
                                    <tr class="special_come" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>到账日期</td>
                                        <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                            <span class="loan-remind">
                                                <div class="small-i small-i-red">请选择日期计算本期收款</div></span>
                                        </td>
                                    </tr>

                                    <tr class="days" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>借款天数</td>
                                        <%--<td class="tdWei">
                                            <span class="loan-yellow comprehensive_fee" {{#IF_NEQ ps_id 7}}style="display:none"{{/IF_NEQ}}>综合费收取</span>
                                            <span class="loan-yellow periods" {{#IF_EQ ps_id 7}}style="display:none"{{/IF_EQ}}>{{funPlanlList.[0].periods}}</span>
                                        </td>--%>
                                        <td><span class="day">{{days}}</span>天</td>
                                    </tr>
                                    <!-- 收款归类 -->


                                    <tr class="special_gathering" style="display: none">
                                        <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                        <td class="tdWei">
                                            <span id="plan_payment_money" class="loan-yellow ">
                                                        ￥{{#add map.is_moth_repayment_rate map.is_month_repayment_money map.is_comprehensive}}{{/add}}
                                            </span>
                                        </td>
                                    </tr>

                                    <!-- 收款明细 -->
                                    <tr class="special_detail" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>收款明细</td>
                                        <!-- ngIf: changeEle.qishu -->
                                        <td id="qishu"></td>
                                        <!-- end ngIf: changeEle.qishu -->
                                    </tr>

                                    <%--<tr class="composive_detail">
                                        <td rowspan="2"><span style="color: #ec0a0b;">*</span>收款明细</td>
                                        <!-- ngIf: changeEle.qishu -->
                                        <td id="qishu" class="tdSelect " {{#IF_NEQ ps_id
                                            5}}{{else}}style="display: none" {{/IF_NEQ}}>
                                        <div class="se-re">
                                            <select id="fund_plan_id">
                                                <option value="">第1期</option>
                                            </select>
                                            <span class="se-po se-box"></span>
                                        </div>
                                        </td>
                                        <!-- end ngIf: changeEle.qishu -->
                                    </tr>--%>

                                    <%--<tr class="composive_detail">
                                        <td class="tdWei tdRadio" style="background: #ffffff;">
								<span class="loan-Ii">
									<i id="notbeijin" class="small-i" ng-if="!changeEle.benjin">
										{{#IF_GT map.is_month_repayment_money 0}}<span class="small-i"
                                                                                       ng-if="funMap.is_month_repayment_money>0">
											本金（￥{{#thounsandBit funMap.is_month_repayment_money}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT map.is_moth_repayment_rate 0}}
										<span class="small-i" ng-if="funMap.is_moth_repayment_rate>0">
											月息（￥{{#thounsandBit funMap.is_moth_repayment_rate}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT map.is_comprehensive 0}}
										<span class="small-i" ng-if="funMap.is_comprehensive>0">
											综合费用（￥{{#thounsandBit funMap.is_comprehensive}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        &lt;%&ndash;{{#IF_GT map.is_comprehensive 0}}&ndash;%&gt;
                                        <span class="small-i" ng-if="funMap.is_comprehensive>0">
                                            综合费用（￥{{#thounsandBit map.is_comprehensive}}{{/thounsandBit}}元）
                                        </span>
                                        &lt;%&ndash;{{/IF_GT}}&ndash;%&gt;
                                    </i>
								</span>
                                        </td>
                                    </tr>--%>

                                    <%--<tr class="special_days_detail">
                                        <td id="qishu" class="tdSelect ">
                                            <div class="se-re">
                                                <select id="fund_plan_id">
                                                    &lt;%&ndash;{{#each funPlanlList}}
                                                    <option value="{{id}}">{{periods}}</option>
                                                    {{/each}}&ndash;%&gt;
                                                    <option value="">第1期</option>
                                                </select>
                                                <span class="se-po se-box"></span>
                                            </div>
                                        </td>
                                    </tr>--%>


                                    <tr class="esa checkAccout">
                                        <td><span style="color: #ec0a0b;">*</span>复核到账</td>
                                        <td>
                                            <label>
                                                <input type="radio" name="isCheck" value="1"/>需要
                                            </label>
                                            <label>
                                                <input type="radio" name="isCheck" value="2"/>不需要
                                            </label>
                                        </td>
                                    </tr>

                                    <!--到账日期 -->
                                    <tr ng-show="changeEle.huaizhang" id="come">
                                        <td><span style="color: #ec0a0b;">*</span>到账日期</td>
                                        <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                        </td>
                                    </tr>

                                    <tr {{#IF_NEQ ps_id 2}}{{else}}style="display: none" ;{{/IF_NEQ}} id="gathering">
                                    <td><span style="color: #ec0a0b;">*</span>实际收款</td>
                                    <td class="tdWei">
                                        <label>
                                            <input type="text" id="real_payment_money"
                                            />
                                            <span>
										元
									</span>
                                        </label>
                                        <span class="loan-mind-al">
									<i class="small-i small-i-red" style="display:none" id="payment_money">输入的金额与实际计划收款金额不一致，请谨慎操作</i>
								</span>
                                    </td>
                                    </tr>


                                    <!--收据单号 -->
                                    <tr ng-if="changeEle.huaizhang" id="transfer">
                                        <td>转款人</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="transferMan"/>
                                            </label>
                                        </td>
                                    </tr>

                                    <!--转款方式 -->
                                    <tr ng-if="changeEle.huaizhang" id="transerWay">
                                        <td>转款方式</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="trans"/>
                                            </label>
                                        </td>
                                    </tr>
                                </script>

                                <script id="add_paymentSort_list_tpl" type="x-handlebars-template">
                                    {{#each this}}
                                    <option value="{{id}}" data-state="{{state}}">{{ps_name}}</option>
                                    {{/each}}
                                </script>

                            </table>

                            <div class="deleFooter">
                                <div class="deleBtn">
                                    <button id="sureAddTerm" style="background: #E55A5B;">确定提交</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--提醒客户--%>
<div class="winBox remindWinbox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明 -->

        <div class="winBox3 ">
            <div class="_box_">
                <div class="headerBox">
                    <span class="headerSpan">提醒客户</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 中间内容 -->
                <div class="maContent">
                    <!-- 中间tab -->
                    <table class="maTab">
                        <tbody>
                        <tr>
                            <td>提醒方式：</td>
                            <td>
                                <input style="width: auto;height: auto;" type="checkbox" checked="checked"
                                       disabled="disabled"> 短信
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <!-- tab列表结束 -->
                    <!-- 底部 -->
                    <div class="deleFooter footerBox">
                        <div class="beizhu assBeizhu"><span>*</span>输入提醒内容</div>
                        <textarea id="remindRemarks" ng-focus="remHight()" ng-class="{'error':redErr.remarks}"
                                  ng-model="param.remarks" data-tag="textLength" showtag="zishuxians"
                                  class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                        <div class="deleBtn">
                            <button style="background: #E55A5B;" id="remindBtn" ng-click="queding()">确定提交</button>
                        </div>
                        <div class="zishu">
                            <i>120</i>字
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--提醒业务员--%>
<div class="winBox remindSalesWinbox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明 -->

        <div class="winBox3 ">
            <div class="_box_">
                <div class="headerBox">
                    <span class="headerSpan">提醒客户</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 中间内容 -->
                <div class="maContent">
                    <!-- 中间tab -->
                    <table class="maTab">
                        <tbody>
                        <tr>
                            <td>提醒方式：</td>
                            <td>
                                <input style="width: auto;height: auto;" type="checkbox" checked="checked"
                                       disabled="disabled"> 短信
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <!-- tab列表结束 -->
                    <!-- 底部 -->
                    <div class="deleFooter footerBox">
                        <div class="beizhu assBeizhu"><span>*</span>输入提醒内容</div>
                        <textarea id="remindSalesRemarks" ng-focus="remHight()" ng-class="{'error':redErr.remarks}"
                                  ng-model="param.remarks" data-tag="textLength" showtag="zishuxians"
                                  class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                        <div class="deleBtn">
                            <button style="background: #E55A5B;" id="remindSalesBtn" ng-click="queding()">确定提交</button>
                        </div>
                        <div class="zishu">
                            <i>120</i>字
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%--收款记录--%>
<div class="winBox payMentWinbox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明 -->

        <div class="winBox5 ">
            <div class="loanrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">收款记录</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox" style="max-height: 682px;">
                        <div class="resultPadd">
                            <table class="dataListTab D-loan-table">
                                <thead>
                                <tr>
                                    <td>期数</td>
                                    <td>提交日期</td>
                                    <td>流水单号</td>
                                    <td>计划收款金额</td>
                                    <td>实际收款金额</td>
                                    <td>到账日期</td>
                                    <td>复核日期</td>
                                    <td>状态</td>
                                </tr>
                                </thead>
                                <tbody id="loanRecord">
                                <!-- tr******************* -->

                                <!-- tr******************* -->
                                <!-- ngRepeat: i in data.content --><!-- ngIf: i.pm_state=='2' -->
                                <!--下面为待复核字体颜色变化--给tr加类class="daifuhe"-->
                                <!-- ngRepeat: i in data.content --><!-- ngIf: i.pm_state=='1' -->
                                <!-- end ngRepeat: i in data.content -->
                                </tbody>
                                <script id="loanRecord_content_tpl" type="x-handlebars-template">
                                    {{#each .}}
                                    {{#IF_EQ pm_state 2}}
                                    <tr>
                                        <td>{{periods}}</td>
                                        <td>{{add_time}}</td>
                                        <td>{{flow_number}}</td>
                                        <td>￥{{#thounsandBit plan_payment_money}}{{/thounsandBit}}</td>
                                        <td>￥{{#thounsandBit real_payment_money}}{{/thounsandBit}}</td>
                                        <td>{{real_time}}</td>
                                        <td>{{#if review_time}}{{review_time}}{{else}}{{add_time}}{{/if}}</td>
                                        <td>已复核</td>
                                    </tr><!-- end ngIf: i.pm_state=='2' --><!-- end ngRepeat: i in data.content -->
                                    {{/IF_EQ}}
                                    {{#IF_EQ pm_state 1}}
                                    <tr>
                                        <td>{{periods}}</td>
                                        <td>{{add_time}}</td>
                                        <td>{{flow_number}}</td>
                                        <td>￥{{#thounsandBit plan_payment_money}}{{/thounsandBit}}</td>
                                        <td>￥{{#thounsandBit real_payment_money}}{{/thounsandBit}}</td>
                                        <td>{{real_time}}</td>
                                        <td>{{review_time}}</td>
                                        <td>待复核</td>
                                    </tr><!-- end ngIf: i.pm_state=='2' --><!-- end ngRepeat: i in data.content -->
                                    {{/IF_EQ}}
                                    {{/each}}
                                </script>
                            </table>
                            <!-- tab列表结束
                            <!-- 底部 -->
                            <div class="deleFooter">

                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

<div class="winBox renewal_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box" style=""><!--选择续期-->
        <div class="winBox4 " style="">
            <div class="moreterm" style="">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">选择续期</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox" style="">
                    <div class="centerBox" style="height: 500px; max-height: 814px;">
                        <div class="resultPadd" style="">
                            <table class="resultTab" style="">
                                <tbody id="renewal_content" style="">
                                </tbody>
                            </table>


                            <script id="renewal_content_tpl" type="x-handlebars-template">
                                <tr>
                                    <td style="background: #fff;text-align: left;padding-left: 20px;" colspan="2"><i
                                            style="color: #f7b733;" class="iconfont icon-tips2"></i>“先息后本”的订单在最后一期或者最后一期已逾期的情况下才会出现次操作，操作之前请确保客户已经同意并签署相关协议！
                                    </td>
                                </tr>
                                <tr>
                                    <td>还款方式</td>
                                    <td class="tdWei">
                                        <!-- ngIf: data.repayment_way == 1 --><span id="repayment_way"
                                                                                    class="loan-yellow "
                                    ></span>
                                        <!-- end ngIf: data.repayment_way == 1 -->
                                        <!-- ngIf: data.repayment_way == 2 -->
                                    </td>
                                </tr>
                                <!--当前期数-->
                                <tr>
                                    <td>当前期数</td>
                                    <td class="tdWei">
                                        <span class="loan-yellow ">第{{sumP}}期</span>
                                        <span class="loan-remind">
									<div class="small-i ">已还<span id="numed">{{#IF_GT sumP 1}}
                    {{#substraction sumP 1}}
                    {{/substraction}}
                {{else}}
                    {{#IF_EQ sumP 1}}
                        0
                    {{else}}
                        {{sumP}}
                    {{/IF_EQ}}
                {{/IF_GT}}</span>期，共<span id="sumP">{{num}}</span>期</div>
									<div class="small-i small-i-red "
                                         id="small_333">放款日期：{{repayment_time}}</div>
								</span>
                                    </td>
                                </tr>
                                <!--剩余本金-->
                                <tr>
                                    <td>剩余本金</td>
                                    <td class="tdWei">
                                        <span class="loan-yellow ">￥{{#thounsandBit sumMoney}}{{/thounsandBit}}（借款金额：￥{{#thounsandBit apply_money}}{{/thounsandBit}}）</span>
                                    </td>
                                </tr>
                                <!--新增期数-->
                                <tr>
                                    <td>新增期数</td>
                                    <td class="tdSelect new-term">
                                        <div class="se-re">
                                            <select id='num' style="width: 70px;"
                                                    ng-options="c.termid as c.term for c in data.addTerm"
                                                    ng-model="data.termid" ng-focus="remHight()"
                                                    ng-class="{'error':redErr.termid}"
                                                    ng-change="changeTerm(data.termid)"
                                                    class="ng-pristine ng-untouched ng-valid ng-empty error">
                                                <option value="" class="" selected="selected">期数</option>
                                                <option label="1期" value="1">1期</option>
                                                <option label="2期" value="2">2期</option>
                                                <option label="3期" value="3">3期</option>
                                                <option label="4期" value="4">4期</option>
                                                <option label="5期" value="5">5期</option>
                                                <option label="6期" value="6">6期</option>
                                                <option label="7期" value="7">7期</option>
                                                <option label="8期" value="8">8期</option>
                                                <option label="9期" value="9">9期</option>
                                                <option label="10期" value="10">10期</option>
                                                <option label="11期" value="11">11期</option>
                                                <option label="12期" value="12">12期</option>
                                                <option label="13期" value="13">13期</option>
                                                <option label="14期" value="14">14期</option>
                                                <option label="15期" value="15">15期</option>
                                                <option label="16期" value="16">16期</option>
                                                <option label="17期" value="17">17期</option>
                                                <option label="18期" value="18">18期</option>
                                                <option label="19期" value="19">19期</option>
                                                <option label="20期" value="20">20期</option>
                                                <option label="21期" value="21">21期</option>
                                                <option label="22期" value="22">22期</option>
                                                <option label="23期" value="23">23期</option>
                                            </select>

                                            <span class="se-po se-box"></span>
                                        </div>
                                        <span class="new-word word-set" ng-class="{'word-set':wordhas}">
									<i class="small-i">很抱歉，您选择的期数大于系统设置最高期数，请通知管理员修改期数设置，否则无法提交！</i>
								</span>
                                    </td>
                                </tr>
                                <!--续期后期数-->
                                <tr>
                                    <td>续期后期数</td>
                                    <td class="tdWei">
                                        <span id="afterRenewal" class="loan-yellow "></span>
                                    </td>
                                </tr>
                                <tr class="esa">
                                    <td>展期类型</td>
                                    <td>
                                        <label>
                                            <input type="radio" name="update_type" value="1">最后一期开始展期
                                        </label>
                                        <label>
                                            <input type="radio" name="update_type" value="2">任意期开始续期
                                        </label>
                                    </td>
                                </tr>
                                <!--其他操作-->
                                <tr class="more-opera">
                                    <td rowspan="2">其他操作</td>
                                    <td class="tdSelect">
                                        <i>
                                            <input type="checkbox">
                                            <em>修改利率</em>
                                            <label ng-class="{'error':err.interest}">
                                                <input id="interest" ng-focus="remFocus()" type="text"
                                                       ng-model="param.r_interest"
                                                       class="ng-pristine ng-untouched ng-valid ng-empty">
                                                <span>分</span>
                                            </label>
                                        </i>
                                        <i>
                                            <input type="checkbox">
                                            <em>已还部分金额</em>
                                            <label ng-class="{'error':err.interest}">
                                                <input id="smallMoney" ng-focus="remFocus()" type="text"
                                                       ng-model="param.salesman_renew"
                                                       class="ng-pristine ng-untouched ng-valid ng-empty">
                                                <span>元</span>
                                            </label>
                                        </i>
                                    </td>
                                </tr>
                                <tr class="more-opera">
                                    <td class="tdSelect new-td">
                                        <i>
                                            <input type="checkbox">
                                            <em>已收业务员续签费</em>
                                            <label ng-class="{'error':err.interest}">
                                                <input ng-focus="remFocus()" type="text"
                                                       ng-model="param.salesman_renew"
                                                       class="ng-pristine ng-untouched ng-valid ng-empty">
                                                <span>元</span>
                                            </label>
                                        </i>
                                        <i>
                                            <input type="checkbox">
                                            <em>已收公司续签费</em>
                                            <label ng-class="{'error':err.interest}">
                                                <input ng-focus="remFocus()" type="text"
                                                       ng-model="param.company_renew"
                                                       class="ng-pristine ng-untouched ng-valid ng-empty">
                                                <span>元</span>
                                            </label>
                                        </i>
                                    </td>
                                </tr>
                                <!--上传附件-->
                                <tr style="">
                                    <td>图片附件</td>
                                    <td class="unload" style="">
                                        <div class="imgArr minImg" style="margin-top: 9px">
                                            <div class="imgWap" id="gallery0">
                                                <div class="imgs" style="width:NaNpx">
                                                    <!-- ngRepeat: (key,t) in _attachImgLists track by $index -->
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </script>

                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="beizhu assBeizhu">备注</div>
                                <textarea ng-model="param.remarks" data-tag="textLength" showtag="zishuxians"

                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button id="preview" style="background: #29335C;" ng-click="viewbtn()">预览新增</button>
                                    <button id="sureRenewal" style="background: #E55A5B;color:white;" ng-click="btn()">确定续期
                                    </button>
                                </div>
                                <div class="zishu">
                                    <i id="zishuxians">200</i>字
                                </div>
                            </div>


                            <div class="tab-get tab-getn" id="preview_content" ng-class="{'tab-getn':tab.has}"></div>
                            <script id="preview_content_tpl" type="x-handlebars-template">
                                <div class="check-div">预览新增的计划收款明细</div>
                                <table class="dataListTab D-loan-table">
                                    <thead>
                                    <tr>
                                        <td>期数</td>
                                        <td>还款日期</td>
                                        <td>本金</td>
                                        <td>利息</td>
                                        <td>合计</td>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {{#each this}}
                                    <!-- ngRepeat: i in data1 -->
                                    <tr ng-repeat="i in data1" class="">
                                        <td>{{periods}}</td>
                                        <td>{{repayment_time}}</td>
                                        <td>{{#thounsandBit
                                            month_repayment_money}}{{/thounsandBit}}
                                        </td>
                                        <td>{{#thounsandBit
                                            moth_repayment_rate}}{{/thounsandBit}}
                                        </td>
                                        <td>{{#add month_repayment_money
                                            moth_repayment_rate}}{{/add}}
                                        </td>
                                    </tr><!-- end ngRepeat: i in data1 -->
                                    {{/each}}
                                    </tbody>
                                </table>
                            </script>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="winBox putLoan_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明 -->

        <div class="winBox2 ">
            <div class="putloan">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">提交收款</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <div class="resultBox">
                    <div class="centerBox" style="max-height: 696px;">
                        <div class="resultPadd">
                            <table class="resultTab">
                                <tbody id="putLoan_list"></tbody>
                                <!-- 本期期数-->
                                <script id="putLoan_list_tpl" type="x-handlebars-template">

                                    <tr>
                                        <td><span style="color: #ec0a0b;">*</span>收款归类</td>
                                        <td class="tdSelect">
                                            <div class="se-re">
                                                <select id="paymentSort_list">

                                                </select>

                                                <span class="se-po se-box"></span>
                                            </div>
                                            <span class="D-right-al">
									<i class="small-i" style="display:none">存在违约金</i>
								</span>
                                        </td>
                                    </tr>

                                    <tr id="thisTerm">
                                        <td><span style="color: #ec0a0b;">*</span>本期期数</td>
                                        <td class="tdWei">
                                            <span class="loan-yellow periods">{{#IF_EQ ps_id 7}}{{funMapLoan.periods}}{{else}}{{funPlan.periods}}{{/IF_EQ}}</span>
                                            <span class="loan-remind">
									<div class="small-i plan_time">当前笔款计划日期：{{funPlan.repayment_time}}</div>
									<div class="small-i  {{#IF_NEQ funMap.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                         id="small_333">本地日期：{{newData}}</div>
								</span>
                                        </td>
                                    </tr>
                                    <!-- 收款归类 -->

                                    <tr id="collectByDays" style="display: none;">
                                        <td><span style="color: #ec0a0b;">*</span>借款期限</td>
                                        <td class="tdWei">
                                            <label>
                                                <input type="text" id="days"/>
                                                <span>天</span>
                                            </label>
                                            <span class="loan-remind">
                                                <div class="small-i" id="payed" style="display: none;">已还时间：<span id="payedDays"></span>天</div>
                                                <div class="small-i small-i-red" id="paying" style="display: none;">未还时间：<span id="payingDays"></span>天</div>
								            </span>
                                        </td>
                                    </tr>

                                    <!-- 本期收款 -->
                                    <tr id="thisCollect">
                                        <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                        <td class="tdWei">
								<span id="plan_payment_money" class="loan-yellow ">
                                    {{#IF_EQ ps_id 5}}
                                        ￥{{#thounsandBit maps.sumMoney}}{{/thounsandBit}}
                                    {{else}}
                                        {{#expression ps_id '==' 7 '&&' loan_type '=='1}}
                                            ￥{{#add funMapLoan.is_moth_repayment_rate funMapLoan.is_month_repayment_money funMapLoan.is_comprehensive}}{{/add}}
                                        {{else}}
                                            ￥{{#thounsandBit plan_payment_money}}{{/thounsandBit}}
                                        {{/expression}}
                                    {{/IF_EQ}}
								</span>

                                        </td>
                                    </tr>

                                    <!-- 收款明细 -->
                                    <tr class="collectDetail">
                                        <td rowspan="2"><span style="color: #ec0a0b;">*</span>收款明细</td>
                                        <!-- ngIf: changeEle.qishu -->
                                        <td id="qishu" class="tdSelect " {{#IF_NEQ ps_id 5}}{{else}}style="display: none" {{/IF_NEQ}}>
                                        <div class="se-re">
                                            <select id="fund_plan_id">
                                                {{#each funPlanlList}}
                                                <option value="{{id}}">{{periods}}</option>
                                                {{/each}}
                                            </select>
                                            <span class="se-po se-box"></span>
                                        </div>
                                        </td>
                                        <!-- end ngIf: changeEle.qishu -->
                                    </tr>
                                    <tr class="collectDetail">
                                        <td class="tdWei tdRadio" style="background: #ffffff;">
								<span class="loan-Ii">
									<i id="notbeijin" class="small-i" ng-if="!changeEle.benjin" {{#IF_NEQ ps_id
                                       5}}{{else}}style="display: none" {{/IF_NEQ}}>
										{{#IF_GT funPlan.is_month_repayment_money 0}}<span class="small-i"
                                                                                           ng-if="funMap.is_month_repayment_money>0">
											本金（￥{{#thounsandBit funPlan.is_month_repayment_money}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT funPlan.is_moth_repayment_rate 0}}
										<span class="small-i" ng-if="funMap.is_moth_repayment_rate>0">
											月息（￥{{#thounsandBit funPlan.is_moth_repayment_rate}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT funPlan.is_comprehensive 0}}
										<span class="small-i" ng-if="funMap.is_comprehensive>0">
											综合费用（￥{{#thounsandBit funPlan.is_comprehensive}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                    </i>
                                    <i id="beijin" class="small-i" {{#IF_EQ ps_id 5}}{{else}}style="display: none" {{/IF_EQ}}>
										<span class="small-i" ng-if="data.content.maps.sumMoney>=0">
											本金（￥{{#thounsandBit maps.sumMoney}}{{/thounsandBit}}元）
										</span>
                                    </i>
                                    <i id="zonghe" class="small-i" {{#IF_EQ ps_id 7}}{{else}}style="display: none" {{/IF_EQ}}>
										<span class="small-i" ng-if="data.content.maps.sumMoney>=0">
                                            综合费用（{{#IF_EQ loan_type 1}}
                                            ￥{{#add funMapLoan.is_moth_repayment_rate funMapLoan.is_month_repayment_money funMapLoan.is_comprehensive}}{{/add}}
                                            {{else}}
                                            ￥{{#add funMap.is_moth_repayment_rate funMap.is_month_repayment_money funMap.is_comprehensive}}{{/add}}
                                            {{/IF_EQ}}元）
										</span>
                                    </i>
                                    <i id="collectByDaysDetail" class="small-i" {{#IF_EQ ps_id 9}}{{else}}style="display: none" {{/IF_EQ}}>
										<span class="small-i" id="benjin">
                                            本金（￥<span style="margin-right: 0" id="daysApplyMoney"></span>元）
										</span>
                                        <span class="small-i">
                                            利息（￥<span style="margin-right: 0" id="daysApplyInterest"></span>元）
										</span>
                                    </i>
								</span>
                                        </td>
                                    </tr>
                                    <!--押金-->
                                    <tr class="more-opera" id="deposit" {{#IF_EQ period_num
                                        sum_name}}{{else}}style="display:none"
                                        {{/IF_EQ}}{{#IF_EQ ps_id 5}}{{#IF_GT sum 0}}{{else}}style="display:none"{{/IF_GT}}{{/IF_EQ}}>
                                    <td rowspan="2">押金</td>
                                    <td class="tdSelect">
                                        <i>
                                            <input type="checkbox" id="depositReturn"/>
                                            <em>押金转本金</em><span>{{#if sum}}（￥{{#thounsandBit sum}}{{/thounsandBit}}元）{{else}}（￥0元）{{/if}}</span>
                                        </i>
                                    </td>
                                    </tr>
                                    <tr class="more-opera" id="guarantee" {{#IF_EQ period_num
                                        sum_name}}{{else}}style="display: none;"
                                        {{/IF_EQ}}{{#IF_EQ ps_id 5}}{{#IF_GT sum 0}}{{else}}style="display: none"{{/IF_GT}}{{/IF_EQ}}>
                                    <td class="tdWei tdRadio" style="background: #ffffff;">
								<span class="loan-Ii">
									<i class="small-i">
										<span class="small-i">
											保证金（￥{{#thounsandBit depositOne}}{{/thounsandBit}}元）
										</span>
									</i>
								</span>
                                    </td>
                                    </tr>
                                    <!-- 违约金 -->
                                    <%--{{#if funMap.penalty}}--%>
                                    <tr id="penalty" {{#IF_EQ ps_id
                                        5}}{{else}}style="display: none;" {{/IF_EQ}}>
                                    <td>违约金</td>
                                    <td class="tdWei">
                                        <label>
                                            <input id="penalty_val" style="width: 148px" type="text"
                                                   value="{{funPlan.is_penalty}}" onlyInputNum="1">
                                        </label>
                                        <span ng-if="sum > 0">
								<input type="checkbox" id="Depositforbreach">
								<em>押金转违约金</em><span>{{#if sum}}（￥{{#thounsandBit sum}}{{/thounsandBit}}元）{{else}}（￥0元）{{/if}}</span>
							</span>
                                    </td>
                                    </tr>
                                    <%--{{/if}}--%>
                                    <!-- 滞纳金 -->
                                    <%--{{#if funMap.late_fee}}--%>
                                    <tr id="late_fee_need" class="esa" {{#IF_EQ ps_id 1}}
                                        {{#IF_EQ maps.s_id 18}}{{else}}style="display: none" {{/IF_EQ}}
                                    {{/IF_EQ}}
                                    {{#IF_EQ ps_id 4}}{{else}}style="display: none"{{/IF_EQ}}
                                    {{#IF_EQ ps_id 5}}{{else}}style="display: none"{{/IF_EQ}}>>
                                    <td>是否缴纳滞纳金</td>
                                    <td>
                                        <label>
                                            <input type="radio" name="isLate" value="1"/>需要
                                        </label>
                                        <label>
                                            <input type="radio" name="isLate" value="2"/>不需要
                                        </label>
                                    </td>
                                    </tr>
                                    <tr id="late_fee" style="display: none">
                                        <td>滞纳金</td>
                                        <td class="tdWei">
                                            <label>
                                                <input type="text" style="width: 148px" value="{{funPlan.is_late_fee}}"
                                                       id="late_fee_val" onlyInputNum="1">
                                            </label>
                                        </td>
                                    </tr>
                                    <%--{{/if}}--%>
                                    <tr class="esa isBenJin" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>是否收取本金</td>
                                        <td>
                                            <label>
                                                <input type="radio" name="isBenJin" value="2"/>是
                                            </label>
                                            <label>
                                                <input type="radio" name="isBenJin" value="1"/>否
                                            </label>
                                        </td>
                                    </tr>
                                    <tr class="esa checkAccout">
                                        <td><span style="color: #ec0a0b;">*</span>复核到账</td>
                                        <td>
                                            <label>
                                                <input type="radio" name="isCheck" value="1"/>需要
                                            </label>
                                            <label>
                                                <input type="radio" name="isCheck" value="2"/>不需要
                                            </label>
                                        </td>
                                    </tr>
                                    <!--实际收款 -->
                                    <tr {{#IF_NEQ ps_id 2}}{{else}}style="display: none" ;{{/IF_NEQ}} id="gathering">
                                    <td><span style="color: #ec0a0b;">*</span>实际收款</td>
                                    <td class="tdWei">
                                        <label>
                                            <input type="text" id="real_payment_money"
                                            />
                                            <span>
										元
									</span>
                                        </label>
                                        <span class="loan-mind-al">
									<i class="small-i small-i-red" style="display:none" id="payment_money">输入的金额与实际计划收款金额不一致，请谨慎操作</i>
								</span>
                                    </td>
                                    </tr>

                                    <!--到账日期 -->
                                    <tr ng-show="changeEle.huaizhang" id="come">
                                        <td><span style="color: #ec0a0b;">*</span>到账日期</td>
                                        <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                        </td>
                                    </tr>

                                    <!--收据单号 -->
                                    <tr ng-if="changeEle.huaizhang" id="transfer">
                                        <td>转款人</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="transferMan"/>
                                            </label>
                                        </td>
                                    </tr>

                                    <!--转款方式 -->
                                    <tr ng-if="changeEle.huaizhang" id="transerWay">
                                        <td>转款方式</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="trans"/>
                                            </label>
                                        </td>
                                    </tr>
                                </script>

                                <script id="special_putLoan_list_tpl" type="x-handlebars-template">
                                    <tr>
                                        <td><span style="color: #ec0a0b;">*</span>收款归类</td>
                                        <td class="tdSelect">
                                            <div class="se-re">
                                                <select id="special_paymentSort_list">
                                                    <option value="1">综合费回款</option>
                                                    <option value="2">按天计息</option>
                                                </select>
                                            </div>
                                            <span class="loan-remind">
									<div class="small-i  {{#IF_NEQ map.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                         id="small_333">本地日期：{{newData}}</div></span>
                                            <span class="D-right-al">
									<i class="small-i" style="display:none">存在违约金</i>
								</span>
                                        </td>
                                    </tr>

                                    <tr class="special_term">
                                        <td><span style="color: #ec0a0b;">*</span>本期期数</td>
                                        <td class="tdWei">
                                            <span class="loan-yellow periods">{{map.periods}}</span>
                                            <span class="loan-remind">
									<div class="small-i plan_time">当前笔款计划日期：{{map.repayment_time}}</div>
									<div class="small-i  {{#IF_NEQ funMap.repayment_time newData}}small-i-red{{/IF_NEQ}}"
                                         id="small_333">本地日期：{{newData}}</div>
								</span>
                                        </td>
                                    </tr>

                                    <tr class="composive_gathering">
                                        <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                        <td class="tdWei">
                                            <span id="plan_payment_money" class="loan-yellow ">
                                                        ￥{{#add map.is_moth_repayment_rate map.is_month_repayment_money map.is_comprehensive}}{{/add}}
                                            </span>
                                        </td>
                                    </tr>


                                    <!--到账日期 -->
                                    <tr ng-show="changeEle.huaizhang" class="special_come" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>到账日期</td>
                                        <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                            <span class="loan-remind">
                                                <div class="small-i small-i-red">请选择日期计算本期收款</div></span>
                                        </td>
                                    </tr>

                                    <tr class="days" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>借款天数</td>
                                        <%--<td class="tdWei">
                                            <span class="loan-yellow comprehensive_fee" {{#IF_NEQ ps_id 7}}style="display:none"{{/IF_NEQ}}>综合费收取</span>
                                            <span class="loan-yellow periods" {{#IF_EQ ps_id 7}}style="display:none"{{/IF_EQ}}>{{funPlanlList.[0].periods}}</span>
                                        </td>--%>
                                        <td><span class="day">{{days}}</span>天</td>
                                    </tr>
                                    <!-- 收款归类 -->


                                    <tr class="special_gathering" style="display: none">
                                        <td><span style="color: #ec0a0b;"></span>本期收款</td>
                                        <td class="tdWei">
                                            <span id="plan_payment_money" class="loan-yellow ">
                                                        ￥{{#add map.is_moth_repayment_rate map.is_month_repayment_money map.is_comprehensive}}{{/add}}
                                            </span>
                                        </td>
                                    </tr>

                                    <!-- 收款明细 -->
                                    <tr class="special_detail" style="display: none">
                                        <td><span style="color: #ec0a0b;">*</span>收款明细</td>
                                        <!-- ngIf: changeEle.qishu -->
                                        <td id="qishu"></td>
                                        <!-- end ngIf: changeEle.qishu -->
                                    </tr>

                                    <%--<tr class="composive_detail">
                                        <td rowspan="2"><span style="color: #ec0a0b;">*</span>收款明细</td>
                                        <!-- ngIf: changeEle.qishu -->
                                        <td id="qishu" class="tdSelect " {{#IF_NEQ ps_id
                                            5}}{{else}}style="display: none" {{/IF_NEQ}}>
                                        <div class="se-re">
                                            <select id="fund_plan_id">
                                                <option value="">第1期</option>
                                            </select>
                                            <span class="se-po se-box"></span>
                                        </div>
                                        </td>
                                        <!-- end ngIf: changeEle.qishu -->
                                    </tr>--%>

                                    <%--<tr class="composive_detail">
                                        <td class="tdWei tdRadio" style="background: #ffffff;">
								<span class="loan-Ii">
									<i id="notbeijin" class="small-i" ng-if="!changeEle.benjin">
										{{#IF_GT map.is_month_repayment_money 0}}<span class="small-i"
                                                                                       ng-if="funMap.is_month_repayment_money>0">
											本金（￥{{#thounsandBit funMap.is_month_repayment_money}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT map.is_moth_repayment_rate 0}}
										<span class="small-i" ng-if="funMap.is_moth_repayment_rate>0">
											月息（￥{{#thounsandBit funMap.is_moth_repayment_rate}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        {{#IF_GT map.is_comprehensive 0}}
										<span class="small-i" ng-if="funMap.is_comprehensive>0">
											综合费用（￥{{#thounsandBit funMap.is_comprehensive}}{{/thounsandBit}}元）
										</span>
                                        {{/IF_GT}}
                                        &lt;%&ndash;{{#IF_GT map.is_comprehensive 0}}&ndash;%&gt;
                                        <span class="small-i" ng-if="funMap.is_comprehensive>0">
                                            综合费用（￥{{#thounsandBit map.is_comprehensive}}{{/thounsandBit}}元）
                                        </span>
                                        &lt;%&ndash;{{/IF_GT}}&ndash;%&gt;
                                    </i>
								</span>
                                        </td>
                                    </tr>--%>

                                    <%--<tr class="special_days_detail">
                                        <td id="qishu" class="tdSelect ">
                                            <div class="se-re">
                                                <select id="fund_plan_id">
                                                    &lt;%&ndash;{{#each funPlanlList}}
                                                    <option value="{{id}}">{{periods}}</option>
                                                    {{/each}}&ndash;%&gt;
                                                    <option value="">第1期</option>
                                                </select>
                                                <span class="se-po se-box"></span>
                                            </div>
                                        </td>
                                    </tr>--%>


                                    <tr class="esa checkAccout">
                                        <td><span style="color: #ec0a0b;">*</span>复核到账</td>
                                        <td>
                                            <label>
                                                <input type="radio" name="isCheck" value="1"/>需要
                                            </label>
                                            <label>
                                                <input type="radio" name="isCheck" value="2"/>不需要
                                            </label>
                                        </td>
                                    </tr>

                                    <!--到账日期 -->
                                    <tr ng-show="changeEle.huaizhang" id="come">
                                        <td><span style="color: #ec0a0b;">*</span>到账日期</td>
                                        <td class="tdWei">
								<span class="put-l-input">
								<input
                                        type="text"
                                        class="real_time datepicker"
                                />
								<i class="iconfont icon-riqi"></i>
								</span>
                                        </td>
                                    </tr>

                                    <tr {{#IF_NEQ ps_id 2}}{{else}}style="display: none" ;{{/IF_NEQ}} id="gathering">
                                    <td><span style="color: #ec0a0b;">*</span>实际收款</td>
                                    <td class="tdWei">
                                        <label>
                                            <input type="text" id="real_payment_money"
                                            />
                                            <span>
										元
									</span>
                                        </label>
                                        <span class="loan-mind-al">
									<i class="small-i small-i-red" style="display:none" id="payment_money">输入的金额与实际计划收款金额不一致，请谨慎操作</i>
								</span>
                                    </td>
                                    </tr>


                                    <!--收据单号 -->
                                    <tr ng-if="changeEle.huaizhang" id="transfer">
                                        <td>转款人</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="transferMan"/>
                                            </label>
                                        </td>
                                    </tr>

                                    <!--转款方式 -->
                                    <tr ng-if="changeEle.huaizhang" id="transerWay">
                                        <td>转款方式</td>
                                        <td class="tdWei">
                                            <label>
                                                <input style="width: 148px" type="text" id="trans"/>
                                            </label>
                                        </td>
                                    </tr>
                                </script>

                                <script id="paymentSort_list_tpl" type="x-handlebars-template">
                                    {{#each this}}
                                    <option value="{{id}}" data-state="{{state}}">{{ps_name}}</option>
                                    {{/each}}
                                </script>

                            </table>
                            <!-- 底部 -->
                            <div class="deleFooter">
                                <div class="beizhu assBeizhu">备注</div>
                                <textarea id="putLoanRemarks" ng-model="param.remarks" data-tag="textLength"
                                          showtag="zishuxians"
                                          class="ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"></textarea>
                                <div class="deleBtn">
                                    <button id="surePutLoan" style="background: #E55A5B;" ng-click="btn()">确定提交</button>
                                </div>
                                <div class="zishu">
                                    <i id="zishuxians">200</i>字
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="winBox collection_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box --><div class="winBox1 ng-scope" ng-include="box"><!-- 说明 -->

    <div class="winBox2 ng-scope">
        <div class="puturge">

            <!-- 头部 -->
            <div class="headerBox">
                <span class="headerSpan">提交催收</span>
                <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
            </div>
            <div class="resultBox">
                <div class="centerBox" style="max-height: 426px;">
                    <div class="resultPadd">
                        <table class="dataListTab" ng-show="_default" style="margin-top:20px;">
                            <thead>
                            <tr>
                                <td>催收期数</td>
                                <td>应该收款</td>
                                <td>实际收款</td>
                                <td>催收次数</td>
                                <td>逾期天数</td>
                            </tr>
                            </thead>
                            <!-- ngRepeat: i in data.content --><tbody ng-repeat="i in data.content" class="ng-scope">
                        <tr ng-class="{'notPay':i.late_days>0}" class="notPay">
                            <td class="ng-binding">第2期</td>
                            <td class="ng-binding">7856</td>
                            <td class="ng-binding"></td>
                            <td class="ng-binding">0</td>
                            <td class="ng-binding">90</td>
                        </tr>
                        </tbody><!-- end ngRepeat: i in data.content -->
                        </table>

                        <table class="resultTab" style="margin-top:20px;">
                            <tbody>
                            <tr>
                                <td>催收期数：</td>
                                <td class="tdSelect">
                                    <div class="se-re">
                                        <select ng-focus="remHight()" ng-class="{'error':redErr.select}" ng-model="param.fun_id" ng-options="a.id as a.periods for a in data.content" class="ng-pristine ng-untouched ng-valid ng-empty"><option value="" class="" selected="selected">选择期数</option><option label="第2期" value="number:2757">第2期</option></select>
                                        <span class="se-po se-box"></span>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <!-- 底部 -->
                        <div class="deleFooter">
                            <div class="beizhu assBeizhu"><span>*</span>催收记录</div>
                            <textarea ng-focus="remHight()" ng-class="{'error':redErr.remarks}" ng-model="param.remarks" data-tag="textLength" showtag="zishuxians" maxlength="200" class="ng-pristine ng-valid ng-empty ng-valid-maxlength ng-touched"></textarea>
                            <div class="deleBtn">
                                <button style="background: #E55A5B;" ng-click="queding()">确定提交</button>
                            </div>
                            <div class="zishu">
                                <i id="zishuxians">200</i>字
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div></div>
</div>


<script type="text/x-handlebars-template" id="at_id_tpl">
    <option value="">分期</option>
    {{#each .}}
    <option value="{{id}}" data-num="{{num}}">{{atName}}</option>
    {{/each}}
</script>


<script type="text/javascript" src="static/js/jquery-plugin/viewer-fake.js?_v=190102162154"></script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.config.js?_v=190102162154"></script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.all.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/loanLater/order_collection.js?_v=190102162150"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>

<%@include file="../common/web_bottom.jsp" %>

